// import { getCookie } from '../../api/cookie.js'/

const state = {
  userId: localStorage.getItem('userId') || '',
  isLogin: localStorage.getItem('isLogin') || '',
  token: localStorage.getItem('token') || ''
}

const actions = {}

const mutations = {
  change_userId (state, payload) {
    state.userId = payload
  },
  change_token (state, payload) {
    state.token = payload
  },
  change_isLogin (state, payload) {
    state.isLogin = payload
  }
}

export default {
  mutations,
  state,
  actions,
  namespaced: true
}
